package one.stand.mapper;

import one.stand.model.AssembleModel;
import one.stand.model.GoodsAssembleModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsAssembleMapper {
    int deleteByPrimaryKey(Integer assembleId);

    int insertSelective(GoodsAssembleModel record);

    GoodsAssembleModel selectByPrimaryKey(Integer assembleId);

    int updateByPrimaryKeySelective(GoodsAssembleModel record);

    List<GoodsAssembleModel> selectGoodsAssembleDraftsPage(GoodsAssembleModel record);

    GoodsAssembleModel getGoodsAssemble(Integer goodsId);

    List<GoodsAssembleModel> selectGoodsAssemblePageUpdate(GoodsAssembleModel record);

    /**
     * 查询商品拼团状态
     * @param assembleGoodIdList
     * @return
     */
    List<GoodsAssembleModel> selectAssembleGoodList(@Param("assembleGoodIdList") List<Integer> assembleGoodIdList);

}